<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<style type="text/css">
	.tag_to_review{background-color:white;border-bottom: 5px solid #F15F5F;width: 120px;height:25px;padding-top:10px;float: left;text-align: center;}
	.tag_to_review a{color: #5D5D5D;}
	.tag_to_examinfo{width: 120px;height:40px;padding-top:10px;float: left;text-align: center;color:white;}
	.tag_to_examinfo a{color:white;}
	.major_body{width: 752px;margin: auto;}
	.major_body_noreview{border: 1px solid lightgray;width:650px;height:100px;color: #5D5D5D;font-size:18px;font-weight: bold;margin: auto;margin-bottom: 30px;padding:50px;text-align: center;}
	.major_body_total{border: 1px solid lightgray;width:750px;height:190px;margin: auto;}
	.major_body_total_left{width: 355px;margin-top:20px;margin-left:20px;float: left;}
	.major_body_total_left_score{height: 30px;}
	.major_body_total_left_score_text{width: 80px;height:25px;color: #5D5D5D;font-size:15px;font-weight: bold;margin-top:7px;margin-left:10px;float: left;}
	.major_body_total_left_score_star{width: 150;float: left;}
	.major_body_total_left_score_score{width: 150;color: #5D5D5D;font-size:15px;font-weight: bold;margin-top:7px;margin-left:15px;float: left;}
	.major_body_total_left_recommend{height: 30px;color: #5D5D5D;font-size:15px;font-weight: bold;margin-top: 20px;margin-left:10px;}
	.major_body_total_left_keep{height: 30px;color: #5D5D5D;font-size:15px;font-weight: bold;margin-top: 10px;margin-left:10px;}
	.major_body_total_left_gender{height: 20px;color: #5D5D5D;font-size:15px;font-weight: bold;margin-top: 10px;margin-left:10px;}
	.major_body_total_right{border: 1px solid lightgray;width: 333px;color: #5D5D5D;font-size:13px;margin-top:20px;margin-left:20px;margin-right:20px;	float: left;}
	.major_body_total_right_job{width: 113px;height: 15px;margin-top: 17px;margin-left:20px;float: left;}
	.major_body_total_right_jobAvg{width: 180px;height: 13px;margin-top: 19px;margin-left:20px;float: left;}
	.major_body_total_right_professor{width: 113px;height: 15px;margin-top: 10px;margin-left:20px;float: left;}
	.major_body_total_right_professorAvg{width: 180px;height: 13px;margin-top: 12px;margin-left:20px;float: left;}
	.major_body_total_right_facility{width: 113px;height: 15px;margin-top: 10px;margin-left:20px;float: left;}
	.major_body_total_right_facilityAvg{width: 180px;height: 13px;margin-top: 12px;margin-left:20px;float: left;}
	.major_body_total_right_scholarship{width: 113px;height: 15px;margin-top: 10px;margin-left:20px;float: left;}
	.major_body_total_right_scholarshipAvg{width: 180px;height: 13px;margin-top: 12px;margin-left:20px;float: left;}
	.major_body_total_right_awareness{width: 113px;height: 15px;margin-top: 10px;margin-left:20px;float: left;}
	.major_body_total_right_awarenessAvg{width: 180px;height: 13px;margin-top: 12px;margin-left:20px;margin-bottom:16px;float: left;}
	.major_body_review{border: 1px solid lightgray;width:750px;margin: auto;}
	.major_body_review_left{width : 150px;margin-top: 20px;margin-left: 20px;float: left;}
	.major_body_review_left_score{height: 25px;}
	.major_body_review_left_regdate{height: 25px;color: #5D5D5D;margin-top:5px;font-size:13px;}
	.major_body_review_left_job{height:12px;color: #5D5D5D;margin-top:20px;font-size:12px;}
	.major_body_review_left_job_score{margin-top:5px;}
	.major_body_review_left_professor{height:12px;color: #5D5D5D;margin-top:10px;font-size:12px;}
	.major_body_review_left_professor_score{margin-top:5px;}
	.major_body_review_left_facility{height:12px;color: #5D5D5D;margin-top:10px;font-size:12px;}
	.major_body_review_left_facility_score{margin-top:5px;}
	.major_body_review_left_scholarship{height:12px;color: #5D5D5D;margin-top:10px;font-size:12px;}
	.major_body_review_left_scholarship_score{margin-top:5px;}
	.major_body_review_left_professor{height:12px;color: #5D5D5D;margin-top:10px;font-size:12px;}
	.major_body_review_left_professor_score{margin-top:5px;}
	.major_body_review_left_awareness{height:12px;color: #5D5D5D;margin-top:10px;font-size:12px;}
	.major_body_review_left_awareness_score{margin-top:5px;}
	.major_body_review_left_gender{height:12px;color: #5D5D5D;margin-top:20px;font-size:12px;}
	.major_body_review_left_gender_score{margin-top:5px;}
	.major_body_review_right{width : 560px;margin-top: 20px;margin-bottom:20px;margin-right: 20px;float: left;}
	.major_body_review_right_title{	border:1px solid lightgray;border-radius:2px;background-color:#F6F6F6;width: 538px;color: #5D5D5D;font-size:15px;font-weight: bold;padding: 10px;float: left;}
	.major_body_review_right_etc{width: 560px;color: #5D5D5D;font-size:13px;font-weight: bold;margin-top:20px;float: left;}
	.major_body_review_right_etc_position{height:20px;float: left;}
	.major_body_review_right_etc_position_img{width: 20px;margin-left:5px;float: left;}
	.major_body_review_right_etc_position_text{margin-top:4px;float: left;}
	.major_body_review_right_etc_recommend{margin-top:4px;float: left;}
	.major_body_review_right_etc_giveup{margin-top:4px;float: left;}
	.major_body_review_right_pros{width: 560px;margin-top:30px;float: left;}
	.major_body_review_right_pros_indi{width: 95px;height:50px;color:#2BA5BA;font-size:13px;font-weight: bold;margin-left:5px;float: left;}
	.major_body_review_right_pros_content{width: 460px;color: #5D5D5D;font-size:13px;float: left;}
	.major_body_review_right_cons{width: 560px;margin-top:20px;float: left;}
	.major_body_review_right_cons_indi{width: 95px;height:50px;color:#F15F5F;font-size:13px;font-weight: bold;margin-left:5px;float: left;}
	.major_body_review_right_cons_content{width: 460px;color: #5D5D5D;font-size:13px;float: left;}
	.major_body_review_right_way{width: 560px;margin-top:20px;float: left;}
	.major_body_review_right_way_indi{width: 95px;height:50px;color:#FF9436;font-size:13px;font-weight: bold;margin-left:5px;float: left;}
	.major_body_review_right_way_content{width: 460px;color: #5D5D5D;font-size:13px;float: left;}
	.major_body_review_right_vote{width: 560px;height: 22px;margin-top:30px;float: left;}
	.major_body_review_right_vote_truth{border:1px solid #BDBDBD;border-radius:2px;height:20px;font-size:15px;text-align: center;margin-left:200px;float: left;}
	.major_body_review_right_vote_truth span{color:#2BA5BA;}
	.major_body_review_right_vote_falsehood{border:1px solid #BDBDBD;border-radius:2px;height:20px;font-size:15px;text-align: center;margin-left:20px;float: left;}
	.major_body_review_right_vote_falsehood span{color:#F15F5F;}
	.major_body_review_right_accuse{width: 60px;height:13px;font-size:13px;margin-left: 500px;float: left;}
	.major_body_page{margin: auto;margin-bottom: 30px;width: 750px;text-align: center;}
</style>
<script type="text/javascript">
	function voteTruth(review_no, value){
		if('${ sessionScope.member_no != null && sessionScope.member_no != ""}'=='true'){
			$.ajax({
				type:"post",
				url:"review.do",
				data:"command=voteTruth&&review_no="+review_no+"&&truth_vote="+value,
				
				success:function(data){
					var message=data.message;
					
					if(message!=0){
						if(message==1){
							var trueValue=$('#trueValue_'+review_no);
							alert("진실에 투표하셨습니다.");
							trueValue.text(parseInt(trueValue.text(), 10)+1);
						}else{
							var falseValue=$('#falseValue_'+review_no);
							alert("거짓에 투표하셨습니다.");
							falseValue.text(parseInt(falseValue.text(), 10)+1);
						}	
					}else{
						alert("이미 투표하셨습니다.");
					}
				}
			});
		}else{
			alert("로그인 해주세요.");
		}
	}
	
	function accuse(review_no){
		if('${ sessionScope.member_no != null && sessionScope.member_no != ""}'=='true'){
			if(confirm("해당 리뷰를 신고하시겠습니까?")){
				location.href("review.do?command=accuse&&review_no="+review_no);
			}
		}else{
			alert("로그인 해주세요.");
		}
	}
	
	$(function(){
		$('.tag_to_examinfo>a').click(function(){
			$('.tag_to_examinfo').removeClass('tag_to_examinfo').addClass('tag_to_review');
			$('.tag_to_review').removeClass('tag_to_review').addClass('tag_to_examinfo');
		});
	});
</script>
</head>
<body>
<c:import url="../index/header.jsp"></c:import><br>
<c:import url="major_header.jsp"></c:import><p>
<div class="major_body">
	<c:choose>
		<c:when test="${ requestScope.rList.length == 0 }">
			<div class="major_body_noreview">
				해당 학과의 리뷰가 없습니다.<p>
				<a href="review.do?command=selectUnitReview"><img alt="" src="../img/view/review/review_button.png" width="200px"></a>
			</div>
		</c:when>
		<c:otherwise>
			<div class="major_body_total">
				<div class="major_body_total_left">
					<div class="major_body_total_left_score">
						<div class="major_body_total_left_score_text">
							평균 총점
						</div>
						<div class="major_body_total_left_score_star">
							<c:set var="total_scoreAvg" value="${ mrvo.scoreAvg }"/>
							<c:set var="total_scoreAvg_round" value="${ total_scoreAvg+((total_scoreAvg%1>0.5)?(1-(total_scoreAvg%1))%1:-(total_scoreAvg%1)) }"/>
							<c:forEach begin="1" end="${ total_scoreAvg_round }"><img alt="" src="../img/view/review/star_selected.png" width="30px" height="30px"></c:forEach><c:forEach begin="1" end="${ 5-total_scoreAvg_round }"><img alt="" src="../img/view/review/star_deselected.png" width="30px" height="30px"></c:forEach>
						</div>
						<div class="major_body_total_left_score_score">
							${ mrvo.scoreAvg }점
						</div>
					</div>
					<div class="major_body_total_left_recommend">
						재학/졸업생의 <font style="color: #99C800; size: 30px;">${ mrvo.recommendAvg }%</font>가 이 학과를 추천합니다. 
					</div>
					<div class="major_body_total_left_keep">
						재학/졸업생의 <font style="color: #FF9436;">${ mrvo.keepAvg }%</font>가 전공을 포기하였습니다.
					</div>
					<div class="major_body_total_left_gender">
						남녀비율 : <font style="color: #2BA5BA;">남성 ${ mrvo.genderAvg*10 }%</font>&nbsp;<font style="color: #F15F5F;">여성 : ${ 100-mrvo.genderAvg*10 }%</font>
					</div>
				</div>
				<div class="major_body_total_right">
					<div class="major_body_total_right_job">
						취업 전망
					</div>
					<div class="major_body_total_right_jobAvg">
						<c:forEach begin="1" end="${ mrvo.jobAvg }"><label style="display: inline-block; background-color: #F15F5F; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${ 5-mrvo.jobAvg }"><label style="display: inline-block; background-color: #ddd; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach>
					</div>
					<div class="major_body_total_right_professor">
						교수진 및 강의
					</div>
					<div class="major_body_total_right_professorAvg">
						<c:forEach begin="1" end="${ mrvo.professorAvg }"><label style="display: inline-block; background-color: #FF9436; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${ 5-mrvo.professorAvg }"><label style="display: inline-block; background-color: #ddd; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach>
					</div>
					<div class="major_body_total_right_facility">
						학교지원 및 시설
					</div>
					<div class="major_body_total_right_facilityAvg">
						<c:forEach begin="1" end="${ mrvo.facilityAvg }"><label style="display: inline-block; background-color: #FFCD12; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${ 5-mrvo.facilityAvg }"><label style="display: inline-block; background-color: #ddd; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach>
					</div>
					<div class="major_body_total_right_scholarship">
						장학금
					</div>
					<div class="major_body_total_right_scholarshipAvg">
						<c:forEach begin="1" end="${ mrvo.scholarshipAvg }"><label style="display: inline-block; background-color: #99E000; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${ 5-mrvo.scholarshipAvg }"><label style="display: inline-block; background-color: #ddd; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach>
					</div>
					<div class="major_body_total_right_awareness">
						인지도 및 학연
					</div>
					<div class="major_body_total_right_awarenessAvg">
						<c:forEach begin="1" end="${ mrvo.awarenessAvg }"><label style="display: inline-block; background-color: #5CD1E5; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-mrvo.awarenessAvg }"><label style="display: inline-block; background-color: #ddd; padding: 4px 15px; border-right: 1px solid #FFFFFF"></label></c:forEach>
					</div>
				</div>
			</div><p>
			
			<div class="major_body_review">
				<c:forEach var="aReview" items="${ requestScope.rList.reviewlist }">
				<c:set var="one" value="${ aReview.review }"></c:set>
					<div class="major_body_review_left">
						<div class="major_body_review_left_score">
							<c:set var="review_score" value="${ one.review_score }"/>
							<c:set var="review_score_round" value="${ review_score+((review_score%1>0.5)?(1-(review_score%1))%1:-(review_score%1)) }"/>
							<c:forEach begin="1" end="${review_score_round}"><img alt="" src="../img/view/review/star_selected.png" width="25px" height="25px"></c:forEach><c:forEach begin="1" end="${5-review_score_round }"><img alt="" src="../img/view/review/star_deselected.png" width="25px" height="25px"></c:forEach>
						</div>
						<div class="major_body_review_left_regdate">
							${ one.printTime }
						</div>
						<div class="major_body_review_left_job">
							취업 전망
						</div>
						<div class="major_body_review_left_job_score">
							<c:set var="review_job" value="${ one.review_job }"/>
							<c:set var="review_job_round" value="${ review_job+((review_job%1>0.5)?(1-(review_job%1))%1:-(review_job%1)) }"/>
							<c:forEach begin="1" end="${review_job_round}"><label style="display: inline-block; background-color: #F15F5F; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-review_job_round }"><label style="display: inline-block; background-color: #ddd; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
						<div class="major_body_review_left_professor">
							교수진 및 강의
						</div>
						<div class="major_body_review_left_professor_score">
							<c:set var="review_professor" value="${ one.review_professor }"/>
							<c:set var="review_professor_round" value="${ review_professor+((review_professor%1>0.5)?(1-(review_professor%1))%1:-(review_professor%1)) }"/>
							<c:forEach begin="1" end="${review_professor_round}"><label style="display: inline-block; background-color: #FF9436; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-review_professor_round }"><label style="display: inline-block; background-color: #ddd; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
						<div class="major_body_review_left_facility">
							학교지원 및 시설
						</div>
						<div class="major_body_review_left_facility_score">
							<c:set var="review_facility" value="${ one.review_facility }"/>
							<c:set var="review_facility_round" value="${ review_facility+((review_facility%1>0.5)?(1-(review_facility%1))%1:-(review_facility%1)) }"/>
							<c:forEach begin="1" end="${review_facility_round}"><label style="display: inline-block; background-color: #FFCD12; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-review_facility_round }"><label style="display: inline-block; background-color: #ddd; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
						<div class="major_body_review_left_scholarship">
							장학금
						</div>
						<div class="major_body_review_left_scholarship_score">
							<c:set var="review_scholarship" value="${ one.review_scholarship }"/>
							<c:set var="review_scholarship_round" value="${ review_scholarship+((review_scholarship%1>0.5)?(1-(review_scholarship%1))%1:-(review_scholarship%1)) }"/>
							<c:forEach begin="1" end="${review_scholarship_round}"><label style="display: inline-block; background-color: #99E000; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-review_scholarship_round }"><label style="display: inline-block; background-color: #ddd; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
						<div class="major_body_review_left_awareness">
							인지도 및 학연
						</div>
						<div class="major_body_review_left_awareness_score">
							<c:set var="review_awareness" value="${ one.review_awareness }"/>
							<c:set var="review_awareness_round" value="${ review_awareness+((review_awareness%1>0.5)?(1-(review_awareness%1))%1:-(review_awareness%1)) }"/>
							<c:forEach begin="1" end="${review_awareness_round}"><label style="display: inline-block; background-color: #5CD1E5; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${5-review_awareness_round }"><label style="display: inline-block; background-color: #ddd; padding: 4px 12px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
						<div class="major_body_review_left_gender">
							남녀비율
						</div>
						<div class="major_body_review_left_gender_score">
							<c:set var="review_gender" value="${ one.review_gender }"/>
							<c:set var="review_gender_round" value="${ review_gender+((review_gender%1>0.5)?(1-(review_gender%1))%1:-(review_gender%1)) }"/>
							<c:forEach begin="1" end="${review_gender_round}"><label style="display: inline-block; background-color: #B2EBF4; padding: 4px 5.8px; border-right: 1px solid #FFFFFF"></label></c:forEach><c:forEach begin="1" end="${10-review_gender_round }"><label style="display: inline-block; background-color: #FFD9FA; padding: 4px 5.8px; border-right: 1px solid #FFFFFF"></label></c:forEach>
						</div>
					</div>
					<div class="major_body_review_right">
						<div class="major_body_review_right_title">
							"${ one.review_title }${ one.review_title }${ one.review_title }"
						</div>
						<div class="major_body_review_right_etc">
							<div class="major_body_review_right_etc_position">
								<div class="major_body_review_right_etc_position_img">
									<img alt="" src="../img/view/review/man.png" style="height: 20px">
								</div>
								<div class="major_body_review_right_etc_position_text">
									${ one.position.position_name }&nbsp;(&nbsp;작성자는 전공을
								</div>
							</div>
							<div class="major_body_review_right_etc_giveup">
								<c:choose>
									<c:when test="${ one.review_giveup == 1 }">
										&nbsp;<font style="color:#2BA5BA;">활용</font>
									</c:when>
									<c:otherwise>
										&nbsp;<font style="color:#F15F5F;">포기</font>
									</c:otherwise>
								</c:choose>하였으며, 이 학과를
							</div>
							<div class="major_body_review_right_etc_recommend">
								<c:choose>
									<c:when test="${ one.review_recommend == 1 }">
										&nbsp;<font style="color:#2BA5BA;">추천</font>
									</c:when>
									<c:otherwise>
										&nbsp;<font style="color:#F15F5F;">비추천</font>
									</c:otherwise>
								</c:choose>합니다.&nbsp;)
							</div>
						</div>
						<div class="major_body_review_right_pros">
							<div class="major_body_review_right_pros_indi">
								장점
							</div>
							<div class="major_body_review_right_pros_content">
								${ one.review_pros }
							</div>
						</div>
						<div class="major_body_review_right_cons">
							<div class="major_body_review_right_cons_indi">
								단점
							</div>
							<div class="major_body_review_right_cons_content">
								${ one.review_cons }
							</div>
						</div>
						<div class="major_body_review_right_way">
							<div class="major_body_review_right_way_indi">
								진로
							</div>
							<div class="major_body_review_right_way_content">
								${ one.review_way }
							</div>
						</div>
						<div class="major_body_review_right_vote">
							<div class="major_body_review_right_vote_truth">
								<a href="javascript:voteTruth('${ one.review_no }','1')" style="text-decoration: none; color:#5D5D5D; font-weight: bold;">&nbsp;진실&nbsp;<span id="trueValue_${ one.review_no }">${ aReview.truth }&nbsp;</span></a>
							</div>
							<div class="major_body_review_right_vote_falsehood">
								<a href="javascript:voteTruth('${ one.review_no }','-1')" style="text-decoration: none; color:#5D5D5D; font-weight: bold;">&nbsp;거짓&nbsp;<span id="falseValue_${ one.review_no }">${ aReview.falsehood }&nbsp;</span></a>
							</div>
						</div>
						<div class="major_body_review_right_accuse">
							<a href="javascript:accuse('${ one.review_no }')" style="text-decoration: none; color: #5D5D5D;">신고하기</a>
						</div>
					</div><hr style="margin-left: 20px; margin-right: 20px; border: 1px solid lightgray;">
				</c:forEach>
			</div><p>
			
			<div class="major_body_page">
				<c:set var="page" value="${requestScope.rList.pageManager}" />
		
				<c:if test="${page.currGroup==1}"><img alt="" src="../img/button/page_begin.gif"></c:if>
				<c:if test="${page.currGroup!=1}">
					<a href="review.do?command=${param.command}&&page=1&&majorunit_no=${param.majorunit_no}"style="text-decoration: none; color: #5D5D5D;"><img alt="" src="../img/button/page_begin.gif"></a>
				</c:if>
			
				<c:if test="${page.existOfPreviousGroup}">
					<a href="review.do?command=${param.command}&&page=${page.firstPageInCurrGroup-page.pagePerGroup}&&majorunit_no=${param.majorunit_no}"style="text-decoration: none; color: #5D5D5D;">
						<img alt="" src="../img/button/page_prev.gif"></a>
				</c:if>
				<c:if test="${!page.existOfPreviousGroup}"><img alt="" src="../img/button/page_prev.gif"></c:if>
			
				<c:forEach var="pageIndex" begin="${page.firstPageInCurrGroup}"
					end="${page.lastPageInCurrGroup}">
					<c:if test="${pageIndex==page.currPage}">&nbsp;<font color="#ff6d66">${pageIndex}</font>&nbsp;</c:if>
					<c:if test="${pageIndex!=page.currPage}">
						<a href="review.do?command=${param.command}&&page=${pageIndex}&&majorunit_no=${param.majorunit_no}"style="text-decoration: none; color: #5D5D5D;">&nbsp;<font color="#606060">${pageIndex}</font>&nbsp;</a>
					</c:if>
				</c:forEach>
			
				<c:if test="${page.existOfNextGroup}">
					<a href="review.do?command=${param.command}&&page=${page.lastPageInCurrGroup+1}&&majorunit_no=${param.majorunit_no}"style="text-decoration: none; color: #5D5D5D;">
						<img alt="" src="../img/button/page_next.gif"></a>
				</c:if>
				<c:if test="${!page.existOfNextGroup}"><img alt="" src="../img/button/page_next.gif"></c:if>
			
				<c:if test="${page.currGroup==page.totalGroup}"><img alt="" src="../img/button/page_end.gif"></c:if>
				<c:if test="${page.currGroup!=page.totalGroup}">
					<a href="review.do?command=${param.command}&&page=${page.totalPage}&&majorunit_no=${param.majorunit_no}"style="text-decoration: none; color: #5D5D5D;"><img alt="" src="../img/button/page_end.gif"></a>
				</c:if>
			</div>
		</c:otherwise>
	</c:choose>
</div>
</body>
</html>